package com.hanqi.dao.impl;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate4.HibernateTemplate;
import org.springframework.stereotype.Repository;

import com.hanqi.dao.BaseDao;

@Repository
public class BaseDaoImpl<T> implements BaseDao<T> {
	
	@Autowired
	private HibernateTemplate hibernateTemplate;

	@Override
	public Serializable save(T t) {
		return hibernateTemplate.save(t);
	}

}
